﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Media;

namespace SharpSoft.WPF.Controls
{
    /// <summary>
    /// 线条设计器
    /// </summary>
    public class LineGeoDesigner : GeoDesignerBase
    {
        public LineGeoDesigner()
        {
            this.Direction = new Vector(100, 20);
        }



        #region 控制点拖动处理 


        #endregion

        protected override void rePositionHandlers()
        {
            this.pathGeometry.Clear();
            LineGeometry line = new LineGeometry(this.OriginalPoint, this.OriginalPoint + this.Direction);
            this.pathGeometry.AddGeometry(line);
            base.rePositionHandlers();
        }

        public override void Paint(DrawingContext dc, GeoControl gc)
        {
            base.Paint(dc, gc);
        }

    }
}
